package com.cloud.bssp.nio.socketchannel;

import java.net.InetSocketAddress;
import java.nio.channels.SocketChannel;

/**
 * @description： TODO
 * @author：weirx
 * @date：2021/11/4 10:08
 * @version：3.0
 */
public class SocketClientTest {

    public static void main(String[] args) throws Exception {
        SocketChannel sc = SocketChannel.open();
        sc.connect(new InetSocketAddress("localhost", 8080));
        System.out.println("waiting...");

        while (true) {
        }
    }
}
